<?
session_start();

require_once('config.php');
require_once('class/cls_user.php');

$user			= new cls_user();

if (isset($_POST['username']))

{

$cid  =  $user->insert_new_member($_POST);
//print_r ($object);


			$_SESSION["id"] = $cid;
			$cname        = $_POST['username'];
    
		
		
$user->insert_new_coordinator($cname);
		

//print_r ($object);

header("Location: index.php");
}


?>
<html>
<head>
<title>New Member Sign In</title>
<link href="style.css" type="text/css" rel="stylesheet">
<link href="um_sty.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#F7F9F0">



<table id="Table_01" width="775" border="0" cellpadding="0" cellspacing="0" align="center">

	<tr>

		<td>

		<table id="Table_01" width="775" height="32" align="center" border="0" cellpadding="0" cellspacing="0">

	<tr>

		<td width="233" height="32"><img src="images/UMG_Banner.jpg" width="543" height="100" alt=""></td>

		<td><img src="images/UMG_Banner_pic.jpg" width="231" height="100" alt=""></td>
	</tr>
</table>

<!-- End ImageReady Slices -->

<table id="Table_02" width="775" height="24" align="center" bgcolor="#000000" border="0" cellpadding="0" cellspacing="0">

	<tr>

		<td width="544" align="left" valign="middle">

		&nbsp;&nbsp;&nbsp;<a  href="index.php" class="ummenu" >Home</a>		

		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		
		<a href="customer_service.php" class="ummenu">Customer Services</a>
		
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

		<a href="contact_us.php" class="ummenu">Contact Us</a>
		
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

		<a href="aboutus.php" class="ummenu">About Us</a>


		

		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>

		<td width="231" height="24" align="right" valign="middle"><a href="http://66.94.233.46/babelfish/trurl_pagecontent?lp=en_ja&trurl=http%3a%2f%2fwww.umgroups.com">

		</a>&nbsp;&nbsp;

		<a href="http://66.94.233.46/babelfish/trurl_pagecontent?lp=en_zt&trurl=http%3a%2f%2fwww.umgroups.com">		</a>&nbsp;&nbsp;

		<a href="http://66.94.233.46/babelfish/trurl_pagecontent?lp=en_ko&trurl=http%3a%2f%2fwww.umgroups.com">		</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>

	</tr>

</table>
<table width="775" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC" align="center"><tr><td>&nbsp;</td></tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr><td>

<form action="<?= $_SERVER['PHP_SELF'] ?>" method="post">
<table border="0" align="center">
  <tr>
    <td height="29" colspan="3"  align="center"><h3>New Member Sign In</h3></td>
  </tr>
  
  <tr>
    <td>User Name</td>
    <td><input size="20" type ="text" name = "username"></td>
  </tr>
  <tr>
  	<td>Password</td>
    <td><input size="20" type ="password" name = "userpassword"></td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
    <td height="30" align="right"><input name="submit" type="submit" value = "Submit >>>" ></td>
  </tr>
</table>
</form>
</td></tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr bgcolor="#CCCCCC">
	  <td height="2" colspan="2" class="copy" style="padding-left: 3px"></td>
	  </tr>
  <tr>
    <td><table align="center" border="0" cellpadding="0" cellspacing="0" width="775" id="table6" bgcolor="#FFFFFF" style="border-bottom: 3px solid #DF8A0B; ">

			<tr>

				<td height="30" colspan="2" class="foot">&nbsp;</td>
			</tr>

			<tr>

				<td class="foot" align="center" colspan="2">

				<a class="foot" href="index.php">Home</a> |  

				<a class="foot" href="umgcontactus.htm">Contact us</a> |

				<a class="foot" href="umgroup.htm">UM Group</a></td>
			</tr>

			<tr>

				<td class="copy" style="padding-left: 3px" colspan="2">&nbsp;</td>
			</tr>

			<tr>

				<td class="copy" style="padding-left: 3px" width="50%">Privacy | &copy; Copyright All right reserved<span style>

				</span><a class="copy" href="http://www.umgroups.com">www.umgroups.com</a></td>

				<td class="copy" style="padding-right:3px" align="right" width="50%" valign="top">

				United Machinery Group Myanmar</td>
			</tr>

			<tr>

				<td height="30" colspan="2" class="foot">&nbsp;</td>
			</tr>

		</table></td>
  </tr>
</table>
</body>
</html>